<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*,java.io.*,java.sql.*,InvestmentPojo.*,ImmovableIndia.*;"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>

<html>
	<head>
	<title>Circular</title>
	</head>
	<table width="100%" align="center" border="0" bordercolor="red" cellspacing ="0" cellpadding="0" valign="middle" >
    	<tr>
			<td><h1><div class ="TITLEFORM"><%=null != request.getAttribute("title")?request.getAttribute("title"):""  %></div></h1></td>
		</tr>
	</table>
	<table width="100%" align="center" border="1" bordercolor="red" cellspacing ="0" cellpadding="0" valign="middle" >
	<tr><td width="5%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><font color="blue"><b>S.No:</b></font></h2></td>
			<td  width="20%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><font color="blue"><b>User Name</b></font></h2></td>
			<td  width="10%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><font color="blue"><b>User Id</b></font></h2></td>
			<td  width="20%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><font color="blue"><b>User Mail Id</b></font></h2></td>
			<td  width="15%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><font color="blue"><b>User Type</b></font></h2></td>
			<td  width="15%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><font color="blue"><b>User Phone Number</b></font></h2></td>
			<td  width="15%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><font color="blue"><b>Date Of Registered</b></font></h2></td></b>
			</tr>
		<% 
		try{
		String sectorvalue=(String)request.getParameter("sectorvalue");
    	String path = request.getSession().getServletContext().getRealPath("/");
		FileInputStream fis=new FileInputStream(path+"FemaProperties/PostQueryQuestion.properties");
        System.out.println("InputStream is: " + fis);  
		Properties sectorpros = new Properties();
		sectorpros.load(fis);
		
		List li = (List) request.getAttribute("UsersList"); 
		if(null != li && !"".equals(li)){ %>
			   <% if(li.size() > 5){  %>
				  <table width='100%' border = "1" style='height: 400px; overflow-y: auto; display: block;'>
				<% }else{ %>
				  <table width='100%'>
		<%} 
		for(int i=0;i<li.size();i++){
			userInformationPojo obj= (userInformationPojo) li.get(i);%>
			
			
			<tr><td width="5%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><%=i+1 %></h2></td>
			<td  width="20%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><%=obj.getUserFirstName() %> </h2></td>
			<td  width="10%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><%=obj.getUserId() %> </h2></td>
			<td  width="20%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><a href='mailto:<%=obj.getUserEmailId() %>' ><font color="blue"><%=obj.getUserEmailId() %></font></h2></td>
			<td  width="15%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><%=obj.getUserTypel() %></h2></td>
			<td  width="15%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><%=obj.getUserTelephone() %></h2></td>
			<td  width="15%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><%=obj.getCreatedOn() %></h2></td></tr>
			<%}%>
			</table>
			<%} %>
		</table>
</html>
<% }catch(Exception e){
	e.printStackTrace();
}
%>